<!DOCTYPE html>
<meta http-equiv="Expires" CONTENT="0">
<meta http-equiv="Cache-Control" CONTENT="no-cache">
<meta http-equiv="Pragma" CONTENT="no-cache">
<html><head>

<title>银行卡信息</title>

<meta name="description" content="">
<meta name="keywords" content="">
<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
<meta charset="UTF-8">
<link rel="stylesheet" href="../../resource/weui.min.css"/>
<link rel="stylesheet" href="../../resource/example.css"/>
<script src="../../resource/jquery-1.js"></script>
<script type="text/javascript" src="../../resource/wap_common.js"></script>
<script type="text/javascript" src="../../resource/common.js"></script>
<script type="text/javascript" src="../../script/api.js"></script>
<link rel="stylesheet" href="../../resource/jinsuistyle.css" />

</head>
<body>
	<div id="jsheader">
		<nav id="jsnav">
				<a id="jsleft" tapmode="" onclick="api.closeWin();">
						<span>返回</span>
				</a>
				<div id="jsmiddle">
						<strong id="jstitle">金穗服务</strong>
				</div>
				<a id="jsright">
					<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
				</a>
		</nav>
</div>
	<div class="paddingtop70">&nbsp;</div>
	<div id="loadingToast" style="display:none;">
        <div class="weui-mask_transparent"></div>
        <div class="weui-toast">
            <i class="weui-loading weui-icon_toast"></i>
            <p class="weui-toast__content">数据加载中</p>
        </div>
	</div>
	<div id="waitToast" style="display:none;">
        <div class="weui-mask_transparent"></div>
        <div class="weui-toast">
            <i class="weui-loading weui-icon_toast"></i>
            <p class="weui-toast__content">请稍后...</p>
        </div>
	</div>
   <div style="height: 20px" class="weui-cells__title"><h1 class="page__title">银行卡信息</h1></div>
	<form id="ff">
	<input type="hidden" id="id" name="id" />
        <div class="weui-cells">
            <div class="weui-cell">
                <div class="weui-cell__bd">
                    <input id="userName" name="userName" class="weui-input" type="text" placeholder="请输入持卡人姓名"/>
                <input id="openId" name="openId" type="hidden" />

                </div>
            </div>
        </div>
        <div class="weui-cells">
            <div class="weui-cell">
                <div class="weui-cell__bd">
                    <input id="taxCode" name="taxCode" class="weui-input" type="text" placeholder="请输入持卡人证件号"/>
                </div>
            </div>
        </div>
        <div class="weui-cells">
            <div class="weui-cell">
                <div class="weui-cell__bd">
                    <input id="address"  name="address" class="weui-input" type="text" placeholder="请输入持卡人银行卡号"/>
                </div>
            </div>
            <div class="weui-cell">
                <div class="weui-cell__bd">
                    <input id="phoneNumber" name="phoneNumber" class="weui-input" type="number" pattern="[0-9]*" placeholder="请输入持卡人手机号"/>
                </div>
            </div>
        </div>
        
	<div id="errorInfo"   style="height:20px;text-align: center;color: red;">
	</div>
	<div class="page__bd page__bd_spacing">
        <a href="javascript:;" id="saveBtn" onclick="saveInfo();" class="weui-btn weui-btn_primary">修改</a>
        <a href="javascript:;" onclick="deleteInfo()" class="weui-btn weui-btn_warn">删除</a>
	</div>

	<div class="js_dialog" id="iosDialog2" style="display: none;">
            <div class="weui-mask"></div>
            <div class="weui-dialog">
                <div class="weui-dialog__bd">保存失败，请重试！</div>
                <div class="weui-dialog__ft">
                    <a href="javascript:;" onclick="$('#iosDialog2').fadeOut(200);" class="weui-dialog__btn weui-dialog__btn_primary">确定</a>
                </div>
            </div>
        </div>
        <div id="toast" style="display: none;">
        <div class="weui-mask_transparent"></div>
        <div class="weui-toast">
            <i class="weui-icon-success-no-circle weui-icon_toast"></i>
            <p class="weui-toast__content">保存成功！</p>
        </div>
    </div>
</form>

<img src="resource/wapstat.htm" height="0" width="0">
<script type="text/javascript" src="resource/jweixin-1_002.js"></script>
<script type="text/javascript" src="resource/jweixin-1.js"></script>
<script type="text/javascript">

var ua = navigator.userAgent.toLowerCase();
var isWeixin = ua.indexOf('micromessenger') != -1;
var isAndroid = ua.indexOf('android') != -1;
var isIos = (ua.indexOf('iphone') != -1) || (ua.indexOf('ipad') != -1);
var appId = "",timestamp = "",nonceStr="",signature="";
var backToken ='';
if (!isWeixin) {
}else if(!backToken){//微信客户端
	jQuery.ajax({
		type : 'POST',
		url : 'http://www.uphsh.com:80/sign',
		data : {shareUrl:window.location.href},
		dataType : "json",
		success : function(data, textStatus, jqXHR) {
			if (textStatus == 'success') {
				appId = data.appid;
				timestamp = data.timestamp;
				nonceStr=data.nonceStr;
				signature=data.signature;
				//config 注入成功后异步回调wx.ready方法
				wx.config({
					debug : false,
					appId : appId,
					timestamp : timestamp,
					nonceStr : nonceStr,
					signature : signature,
					jsApiList : [ 'checkJsApi', 'onMenuShareTimeline',
							'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo',
							'onMenuShareQZone', 'hideMenuItems', 'showMenuItems',
							'hideAllNonBaseMenuItem', 'showAllNonBaseMenuItem',
							'translateVoice', 'startRecord', 'stopRecord',
							'onVoiceRecordEnd', 'playVoice', 'onVoicePlayEnd',
							'pauseVoice', 'stopVoice', 'uploadVoice', 'downloadVoice',
							'chooseImage', 'previewImage', 'uploadImage', 'downloadImage',
							'getNetworkType', 'openLocation', 'getLocation',
							'hideOptionMenu', 'showOptionMenu', 'closeWindow',
							'scanQRCode', 'chooseWXPay', 'openProductSpecificView',
							'addCard', 'chooseCard', 'openCard' ]
				});
			} else {

			}
		},
		error : function(XMLHttpRequest, textStatus, errorThrown) {

		}
	});
}
function root() {
	var pathName = window.location.pathname.substring(1);
	var webName = pathName == '' ? '' : pathName.substring(0, pathName
			.indexOf('/'));
	return window.location.protocol + '//' + window.location.host + '/'
			+ webName + '/';
}

function getParam(param){
	var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
	var r = window.location.search.substr(1).match(reg);
	if (r != null)
		return unescape(r[2]);
	return null;
}

function share(data){
	//分享到朋友圈
	wx.onMenuShareTimeline({
		title : data.title,
		link : data.link,
		imgUrl : data.imgUrl,
		trigger : function(res) {

		},
		success : function(res) {

		},
		cancel : function(res) {

		},
		fail : function(res) {

		}
	});
	//分享给朋友
	wx.onMenuShareAppMessage({
	    title: data.title, // 分享标题
	    desc: data.desc, // 分享描述
	    link: data.link, // 分享链接
	    imgUrl: data.imgUrl, // 分享图标
	    type: '', // 分享类型,music、video或link，不填默认为link
	    dataUrl: '', // 如果type是music或video，则要提供数据链接，默认为空
	    success: function () {
	        // 用户确认分享后执行的回调函数
	    },
	    cancel: function () {
	        // 用户取消分享后执行的回调函数
	    }
	});
	//分享到qq
	wx.onMenuShareQQ({
	    title: data.title, // 分享标题
	    desc: data.desc, // 分享描述
	    link: data.link, // 分享链接
	    imgUrl: data.imgUrl, // 分享图标
	    success: function () {
	       // 用户确认分享后执行的回调函数
	    },
	    cancel: function () {
	       // 用户取消分享后执行的回调函数
	    }
	});
	//分享到qq空间
	wx.onMenuShareQZone({
	    title: data.title, // 分享标题
	    desc: data.desc, // 分享描述
	    link: data.link, // 分享链接
	    imgUrl: data.imgUrl, // 分享图标
	    success: function () {
	       // 用户确认分享后执行的回调函数
	    },
	    cancel: function () {
	        // 用户取消分享后执行的回调函数
	    }
	});
	//分享到腾讯微博
	wx.onMenuShareWeibo({
	    title: data.title, // 分享标题
	    desc: data.desc, // 分享描述
	    link: data.link, // 分享链接
	    imgUrl: data.imgUrl, // 分享图标
	    success: function () {
	       // 用户确认分享后执行的回调函数
	    },
	    cancel: function () {
	        // 用户取消分享后执行的回调函数
	    }
	});
}

//wx.ready(function() {
//	//准备数据
//	var wxData = {
//			"title" : "银联荟生活",
//			"link" : "http://www.uphsh.com/wap/?shareId=9524cfe7b726460ab8465c3daa4e76df",
//			"imgUrl" : "http://www.uphsh.com:80/activity/activity_logo.jpg",
//			"desc":"银联荟生活是中国银联股份有限公司四川分公司推出的一款便民缴费系统，是四川省内首家将生活缴费集成于一站，致力于整合行业应用资源，搭建一个集多样性、开放性、便捷性和延展性为一身的行业应用平台，打造出一款充值、公缴、金融、生活服务为一体的现代服务业示范平台"
//		};
//	share(wxData);
//});


</script>


<script type="text/javascript">
	

	function clearInput(){
		$("#userName").val("");
		$("#taxCode").val("");
		$("#address").val("");
		$("#phoneNumber").val("");
		$("#bankName").val("");
		$("#bankNumber").val("");
	}
</script>
<div class="page__ft" style="margin-bottom: 10px">
<a style="color:#777;font-size:12px">四川航天金穗高技术有限公司</a>
</div>
</body></html>
